<?php
/*
 +----------------------------------------------------------------------
 + Title        : Test 控制器
 + Author       : Randy_chen
 + Version      : V1.0.0.1
 + Initial-Time : 2019/5/30 23:35
 + Last-time    : 2019/5/30 23:35+ 86187
 + Desc         : Test
 +----------------------------------------------------------------------
*/


namespace app\admin\behavior;


use app\common\lib\Job;
use library\tools\Node;
use think\Request;
use think\Response;

class Log1
{
    public function run($param)
    {
        file_put_contents('text.html' , json_encode($param));
////        try {
////            db('logs')->insert([
////                                   'create_time' => date('Y-m-d H:i:s'),
////                                   'contents' => json_encode($param)
////                               ]);
////        } catch (\Exception $e) {
////           \think\facade\Log::write('日志写入失败'.$e->getMessage() , 'info');
////        }

//        $job = new Job();
//        //事件推送
//            $res = $job->actionWithJob(
//                'log_write',
//                'log_write',
//                    $param
//            );
        return true;
    }

}